<ul class="am-list">
    <?php
    if (isset($msgList))
        foreach ($msgList as $msgObj) {
            if ($msgObj->Type == 1) //反馈的对话
            {
                $avatar = '<div class="app-main-backcolor app-admin-msg-flag">反馈</div>';
                $msgObj->SendUserName = '管理员';
                $msg_type = message_m::MsgAdRepostDialogList;
            } elseif ($msgObj->Type == 2) //举报的对话
            {
                $avatar = '<div class="app-main-backcolor app-admin-msg-flag">举报</div>';
                $msgObj->SendUserName = '管理员';
                $msg_type = message_m::MsgAdRepostDialogList;
            } elseif ($msgObj->Type == 9) //系统消息
            {
                $avatar = '<div class="app-main-backcolor app-system-msg-flag">系统消息</div>';
                $msgObj->SendUserName = '管理员';
                $msg_type = message_m::MsgSystemContent;
            } else {
                $avatar = "<img class=\"am-circle\" src=\"{$msgObj->SendUserAvatar}\" height=\"50\" width=\"50\" />";
                $msg_type = message_m::MsgPrivateDialogList;
            }
            ?>
            <li class="am-list-item" style="padding: 5px 0px;">
                <a onclick="goto_dialog_show(<?= $msgObj->DialogId ?>,<?= $msg_type ?>)">
                    <div class="am-g">
                        <div style="padding: 5px 10px; float: left;">
                            <?= $avatar ?>
                        </div>
                        <div style="padding-top:6px; overflow: hidden; zoom: 1;">
                            <div class="app-main-color">
                                <?= $msgObj->SendUserName ?>
                                <span style="padding-top: 2px" class="am-text-xs am-fr app-gray-color">
                        <?= $msgObj->MsgDate ?>
                    </span>
                            </div>
                            <div class="am-text-truncate">
                                <span class="app-black-color"><?= $msgObj->MsgText ?></span>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
        <?php } ?>
</ul>
<?php
if (isset($paginateMsg)) {
    echo $paginateMsg;
} //插入分页信息
?>